// 图形处理库 sharp
// https://www.npmjs.com/package/sharp


const fs = require('fs')
const sharp = require('sharp')

sharp('./11.jpg').rotate(90).resize(400).toBuffer().then(data=>{
  fs.writeFile('111.jpg',data,(err)=>console.log(err))
})